class LoginApi2:
    def __init__(self):
        self.url1 = "http://tpshop-test.itheima.net/index.php?m=Home&c=User&a=verify&r=0.7794573621727154"
        self.url2 = "http://tpshop-test.itheima.net/index.php?m=Home&c=User&a=do_login&t=0.4003948083916662"
        self.headers = {"Content-Type": "application/x-www-form-urlencoded"}

    def get_verify2(self, my_session):
        return my_session.get(url=self.url1)

    def login2(self, my_session, reqData):
        return my_session.post(url=self.url2, headers=self.headers, data=reqData)
